package com.hspedu.collection_;

import java.util.HashSet;

@SuppressWarnings({"all"})
public class HashSetIncrement {
    public static void main(String[] args) {
        HashSet hashSet = new HashSet();
        for (int i = 1; i <= 12; i++) {
            hashSet.add(new A(i));
        }
        System.out.println(hashSet);
    }
}

class A {
    private int n;

    public A(int n) {
        this.n = n;
    }

    public int hashCode(){
        return 100;
    }
}